//
// Created by l00650229 on 2022/5/17.
//
#include "vector"
#include <iostream>
#include <iterator>
#include <sstream>
using namespace std;

int main() {
    std::vector<int> my_vector = {1, 2, 3, 4};
    std::stringstream result;
    std::copy(my_vector.begin(), my_vector.end(), std::ostream_iterator<int>(result, ","));
    cout << result.str().c_str() << endl;
    return 0;
}